Searched hist:"5 f87072e" (Results 1 – 1 of 1) sorted by path
/qemu/migration/ |
H A D | qemu-file.c | 5f87072e Mon Jun 27 13:53:18 GMT 2022 Daniel P. Berrangé <berrange@redhat.com> migration: remove unreachable code after reading data
The code calls qio_channel_read() in a loop when it reports QIO_CHANNEL_ERR_BLOCK. This code is reported when errno==EAGAIN.
As such the later block of code will always hit the 'errno != EAGAIN' condition, making the final 'else' unreachable.
Fixes: Coverity CID 1490203 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20220627135318.156121-1-berrange@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|